public class Test {
	static double A = (Math.sqrt(5) - 1) / 2;

	public static void main(String args[]) {
		for (int i = 61; i <= 65; i++) {
			System.out.println(index(i));
		}
	}

	public static int index(double k) {
		return (int) (((A * k) % 1) * 1000);
	}
}
